<?php if(!IS_AJAX){?>
<?php if(!is_spider()){?>
<script>






var html = '<div id="lockwindowlayout" style="background-color:rgba(255,255,255,0.2); position:fixed; bottom:0; top:0; left:0; right:0; z-index:20000000;"><div class="loader-inner line-scale" style="position:absolute;top:50%; width:100%; margin-top:-50px; text-align:center;"><div></div><div></div><div></div><div></div><div></div></div><style>#lockwindowlayout .line-scale div{background:#5ec8ff;}.aui_state_focus{opacity:0;}</style></div>';
		$('body').append(html);





	setTimeout(function(){
		//$('#loading_').remove();
		//$('.container').animate({'opacity':1},300);
		//$.holdReady(false);
		$('.container').animate({'opacity':0},10);
		$.get(window.location.href,{},function(d){
			try{
            $('.container').html(d);
		    
    }catch(e){
        for(var p in e){
            //document.writeln(p + "=" + e[p]);
        }
    }
			$('.container').animate({'opacity':1},200); 
			//$('body').animate({'background':'#fff'},500);
			$('#lockwindowlayout').remove();
			$.holdReady(false);
			//视频宽高自适应，正方形
	/*$('.video_iframe').each(function(index, element) {alert();
        var width = $(this).parent().width();
		var height = width*0.75;
		$(this).attr('src', $(this).attr('data-src'));
		$(this).attr('width', width);
		$(this).attr('height', height);
		$(this).css({'height':height, 'width':width});
    });*/
			
			
	//视频宽高自适应，正方形
	$('.video_iframe').each(function(index, element) {
        var width = $(this).parent().width();
		var height = width*0.75;
		$(this).attr('width', width);
		$(this).attr('height', height);
		$(this).css({'height':height, 'width':width});
		if(typeof($(this).attr('src')) == "undefined"){
			$(this).attr('src', $(this).attr('data-src'));
		}
		var src = $(this).attr('src').replace(/width\=[0-9\.]+/, "width="+width).replace(/height\=[0-9\.]+/, "height="+height);
		$(this).attr('src', src);
    });
			
			
			
			
	    },'html');}, 100);
</script>
<?php } }?>